package com.qingzhuge.member.service;

import com.qingzhuge.member.entity.SysImageText;
import com.qingzhuge.member.enums.EnumPublishType;
import com.qingzhuge.service.IBasePkLongService;
import com.qingzhuge.utils.PageUtil;

import java.util.List;

/**
 * @Description:
 * @Auther: ChenQ
 * @Date: 2018/12/25 14:54
 */
public interface IMalImageTextService extends IBasePkLongService<SysImageText> {
    /**
     * 查询type
     */
    List<SysImageText> selectType(EnumPublishType type, Integer deleted);

    /**
     * 查询全部有效的图文
     */
    List<SysImageText> selectEffectiveAll(Integer deleted);

    /**
     * 根据id查询没有被删除的图文
     *
     * @param id
     * @param deleted
     * @return
     */
    SysImageText selectEffectiveById(Long id, Integer deleted);

    /**
     * 保存全部
     *
     * @param imagetext
     * @return
     */
    List<SysImageText> saveAll(List<SysImageText> imagetext);


    /**
     * 添加数据
     *
     * @param imagetext
     * @return
     */
    SysImageText add(SysImageText imagetext, Long userId);


    SysImageText getDetails(Long id, Boolean userSide);


    PageUtil<SysImageText> querys(SysImageText entity, boolean isType);
}
